home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / man / man2 < prev    next >
Text File  |  1990-07-19  |  10KB  |  489 lines

  1. #INTRO
  2. Name:    intro    - introduction to system calls and error numbers
  3.  
  4. Syntax:
  5.  
  6. Description:
  7.     This introduction lists the system call errors.
  8.       1  EPERM  Not    owner
  9.      2  ENOENT  No    such file or directory
  10.      3  ESRCH  No such process
  11.      4  EINTR  Interrupted    system call
  12.      5  EIO  I/O error
  13.      6  ENXIO  No such device or address
  14.      7  E2BIG  Arg    list too long
  15.      8  ENOEXEC  Exec format error
  16.      9  EBADF  Bad    file number
  17.      10  ECHILD  No child processes
  18.     11  EAGAIN  No more processes
  19.     12  ENOMEM  Not enough space
  20.     13  EACCES  Permission denied
  21.     14  EFAULT  Bad address
  22.     15  ENOTBLK  Block device required
  23.     16  EBUSY  Device or resource    busy
  24.     17  EEXIST  File exists
  25.     18  EXDEV  Cross-device link
  26.     19  ENODEV  No such device
  27.     20  ENOTDIR  Not a directory
  28.     21  EISDIR  Is a directory
  29.     22  EINVAL  Invalid argument
  30.     23  ENFILE  File table overflow
  31.     24  EMFILE  Too many open files
  32.     25  ENOTTY  Not a character device
  33.     26  ETXTBSY  Text file busy
  34.     27  EFBIG  File too large
  35.     28  ENOSPC  No space left on device
  36.     29  ESPIPE  Illegal seek
  37.     30  EROFS  Read-only file system
  38.     31  EMLINK  Too many links
  39.     32  EPIPE  Broken pipe
  40.     33  EDOM  Math argument
  41.     34  ERANGE  Result too large
  42.     35  ENOMSG  No message of desired type
  43.     36  EIDRM  Identifier    Removed
  44. Bugs:
  45.     This description could be slightly longer.
  46.  
  47. #access
  48. Name:    access - determine accessibility of a    file
  49.  
  50. Syntax:    int access (char *path, int amode)
  51.  
  52. Description:
  53.     Path points to a path    name naming a file. 
  54.  
  55. See Also:
  56.     chmod(2), stat(2).
  57. Bugs:
  58.     This description could be slightly longer.
  59.  
  60. #alarm
  61. Name:    alarm    - set a    process    alarm clock
  62.  
  63. Syntax:    unsigned alarm (unsigned sec)
  64.  
  65. Description:
  66.     Alarm    sets the alarm clock of the calling process.
  67. See Also:
  68.     pause(2), signal(2).
  69. Bugs:
  70.     This description could be slightly longer.
  71.  
  72. #brk
  73. Name:    brk, sbrk - change data segment space    allocation
  74.  
  75. Syntax:    int brk (char *enddes)
  76.     char *sbrk(int incr)
  77.  
  78. Description:
  79.     Brk and sbrk are used    to change dynamically the amount of
  80.     space    allocated for the calling process's data segment(s).
  81. Bugs:
  82.     This description could be slightly longer.
  83.  
  84. #chdir
  85. Name:    chdir    - change working directory
  86.  
  87. Syntax:    int chdir (char *path)
  88.  
  89. Description:
  90.     Change to the named directory.
  91. Bugs:
  92.     This description could be slightly longer.
  93.  
  94. #chmod
  95. Name:    chmod    - change mode of file
  96.  
  97. Syntax:    int chmod (char *path, int mode)
  98.  
  99. Description:
  100.     Change the mode of a file.
  101. Bugs:
  102.     This description could be slightly longer.
  103.  
  104. #chown
  105. Name:    chown    - change owner and group of a file
  106.  
  107. Syntax:    int chown (char *path, int owner, int group)
  108.  
  109. Description:
  110.     Change owner and group of a file.
  111.  
  112. See Also:
  113.     chmod(2).
  114.     chown(1) in the UNIX System V    User Reference Manual.
  115. Bugs:
  116.     This description could be slightly longer.
  117.  
  118. #chroot
  119. Name:    chroot - change root directory
  120.  
  121. Syntax:    int chroot (char *path)
  122.  
  123. Description:
  124.     Change the root directory.
  125.  
  126. See Also:
  127.     chdir(2).
  128. Bugs:
  129.     This description could be slightly longer.
  130.  
  131. #close
  132. Name:    close    - close    a file descriptor
  133.  
  134. Syntax:    int close (int fildes)
  135.     int fildes;
  136.  
  137. Description:
  138.     Close the file.
  139. Bugs:
  140.     This description could be slightly longer.
  141.  
  142. #creat
  143. Name:    creat    - create a new file or rewrite an existing one
  144.  
  145. Syntax:    int creat (char *path, int mode)
  146.  
  147. Description:
  148.     Create a new file.
  149.  
  150. See Also:
  151.     chmod(2), close(2), dup(2), fcntl(2),    lseek(2), open(2),
  152.     read(2), umask(2), write(2).
  153. Bugs:
  154.     This description could be slightly longer.
  155.  
  156. #dup
  157. Name:    dup -    duplicate an open file descriptor
  158.  
  159. Syntax:    int dup (int fildes)
  160.  
  161. Description:
  162.     Duplicate a file descriptot
  163.  
  164. See Also:
  165.     creat(2), close(2), exec(2), fcntl(2), open(2), pipe(2).
  166. Bugs:
  167.     This description could be slightly longer.
  168.  
  169. #exec
  170. Name:    execl, execv,    execle,    execve,    execlp,    execvp - execute a file
  171.  
  172. Syntax:    int execl (path, arg0, arg1, ..., argn, (char    *)0)
  173.     char *path, *arg0, *arg1, ..., *argn;
  174.     int execv (path, argv)
  175.     char *path, *argv[ ];
  176.     int execle (path, arg0, arg1,    ..., argn, (char *)0, envp)
  177.     char *path, *arg0, *arg1, ..., *argn,    *envp[ ];
  178.     int execve (path, argv, envp)
  179.     char *path, *argv[ ],    *envp[ ];
  180.     int execlp (file, arg0, arg1,    ..., argn, (char *)0)
  181.     char *file, *arg0, *arg1, ..., *argn;
  182.     int execvp (file, argv)
  183.     char *file, *argv[ ];
  184.  
  185. Description:
  186.     Exec a file.
  187.  
  188. See Also:
  189.     alarm(2), exit(2), fork(2), nice(2), ptrace(2), semop(2),
  190.     signal(2), times(2), ulimit(2), umask(2), a.out(4),
  191.     environ(5).
  192.     sh(1)    in the MINIX User Reference Manual.
  193. Bugs:
  194.     This description could be slightly longer.
  195.  
  196. #exit
  197. Name:    exit,    _exit -    terminate process
  198.  
  199. Syntax:    void exit (int status)
  200.  
  201. Description:
  202.     Exit terminates the calling process.
  203.  
  204. See Also:
  205.     intro(2), signal(2), wait(2).
  206. Bugs:
  207.     This description could be slightly longer.
  208.  
  209. #fcntl
  210. Name:    fcntl    - file control
  211.  
  212. Syntax:   int fcntl (int fildes, int cmd, int arg)
  213.  
  214. Description:
  215.     Fcntl    provides for control over open files.  
  216.  
  217. See Also:
  218.     close(2), exec(2), open(2), fcntl(5).
  219. Bugs:
  220.     This description could be slightly longer.
  221.  
  222. #fork
  223. Name:    fork - create    a new process
  224.  
  225. Syntax:    int fork ()
  226.  
  227. Description:
  228.     Fork causes creation of a new    process.
  229.  
  230. See Also:
  231.     exec(2), signal(2), times(2), ulimit(2), umask(2), wait(2).
  232. Bugs:
  233.     This description could be slightly longer.
  234.  
  235. #getpid
  236. Name:    getpid - get process id
  237.  
  238. Syntax:    int getpid ()
  239.  
  240. Description:
  241.     Getpid returns the process ID    of the calling process.
  242.  
  243. See Also:
  244.     exec(2), fork(2), intro(2), setpgrp(2), signal(2).
  245. Bugs:
  246.     This description could be slightly longer.
  247.  
  248. #getuid
  249. Name:    getuid - get uid
  250.  
  251. Syntax:    unsigned short getuid    ()
  252.  
  253. Description:
  254.     Getuid returns the real user ID of the calling process.
  255.  
  256. See Also:
  257.     intro(2), setuid(2).
  258. Bugs:
  259.     This description could be slightly longer.
  260.  
  261. #ioctl
  262. Name:    ioctl    - control device
  263.  
  264. Syntax:    ioctl    (int fildes, int request, (thingie) arg)
  265.  
  266. Description:
  267.     Ioctl    is weird.
  268. Bugs:
  269.     This description could be slightly longer.
  270.  
  271. #kill
  272. Name:    kill - send a    signal to a process or a group of processes
  273.  
  274. Syntax:    int kill (int pid, int sig)
  275.  
  276. Description:
  277.     Kill sendes a signal to a process or a    group of processes.
  278.  
  279. See Also:
  280.     getpid(2), setpgrp(2), signal(2).
  281.     kill(1) in the UNIX System V User Reference Manual.
  282. Bugs:
  283.     This description could be slightly longer.
  284.  
  285. #link
  286. Name:    link - link to a file
  287.  
  288. Syntax:    int link (char *path1, char *path2)
  289.  
  290. Description:
  291.     Path1    points to a path name naming an    existing file.
  292.  
  293. See Also:
  294.     unlink(2).
  295. Bugs:
  296.     This description could be slightly longer.
  297.  
  298. #lseek
  299. Name:    lseek    - move read/write file pointer
  300.  
  301. Syntax:    long lseek (int fildes, long offset, int whence)
  302.  
  303. Description:
  304.     Set file position.
  305.  
  306. See Also:
  307.     creat(2), dup(2), fcntl(2), open(2).
  308. Bugs:
  309.     This description could be slightly longer.
  310.  
  311. #mknod
  312. Name:    mknod    - make a directory, or a special or ordinary file
  313.  
  314. Syntax:    int mknod (char *path, int mode, int dev)
  315.  
  316. Description:
  317.     Create a special file.
  318.  
  319. See Also:
  320.     chmod(2), exec(2), umask(2), fs(4).
  321.     mkdir(1) in the UNIX System V    User Reference Manual.
  322. Bugs:
  323.     This description could be slightly longer.
  324.  
  325. #mount
  326. Name:    mount    - mount    a file system
  327.  
  328. Syntax:    int mount (char *spec, char *dir, int rwflag)
  329.  
  330. Description:
  331.     Mount a file system.
  332.  
  333. See Also:
  334.     umount(2), fs(4).
  335. Bugs:
  336.     This description could be slightly longer.
  337.  
  338. #open
  339. Name:    open - open for reading or writing
  340.  
  341. Syntax:   int open (char *path, int oflag [int mode ] )
  342.  
  343. Description:
  344.     Open a file.
  345.  
  346. See Also:
  347.     chmod(2), close(2), creat(2),    dup(2),    fcntl(2), lseek(2),
  348.     read(2), umask(2), write(2).
  349. Bugs:
  350.     This description could be slightly longer.
  351.  
  352. #pause
  353. Name:    pause    - suspend process until    signal
  354.  
  355. Syntax:    pause    ()
  356.  
  357. Description:
  358.     Pause    suspendes the calling process until it receives a signal.
  359.  
  360. See Also:
  361.     alarm(2), kill(2), signal(2),    wait(2).
  362. Bugs:
  363.     This description could be slightly longer.
  364.  
  365. #pipe
  366. Name:    pipe - create    an interprocess    channel
  367.  
  368. Syntax:    int pipe (int fildes[2])
  369.  
  370. Description:
  371.     Pipe creates an I/O mechanism    called a pipe.
  372.  
  373. See Also:
  374.     read(2), write(2).
  375. Bugs:
  376.     This description could be slightly longer.
  377.  
  378. #read
  379. Name:    read - read from file
  380.  
  381. Syntax:    int read (int fildes, char *buf, int nbyte)
  382.  
  383. Description:
  384.     Read a file.
  385.  
  386. See Also:
  387.     creat(2), dup(2), fcntl(2), ioctl(2),    open(2), pipe(2).
  388. Bugs:
  389.     This description could be slightly longer.
  390.  
  391. #setpgrp
  392. Name:    setpgrp - set    process    group ID
  393.  
  394. Syntax:    int setpgrp ()
  395.  
  396. Description:
  397.     Setpgrp sets the process group ID.
  398.  
  399. See Also:
  400.     exec(2), fork(